package com.zhongkun.datahome.web.app;

import com.zhongkun.datahome.common.core.domain.R;
import com.zhongkun.datahome.service.res.sku.SkuVo;
import com.zhongkun.datahome.service.service.ISkuService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: lifengsheng
 * @Date: 2025/5/20 14:55
 * @Desc
 */
@RestController
@RequestMapping("/app/sku")
public class SkuAppController {
    @Resource
    private ISkuService skuService;

    @ApiOperation("获取商品信息详细信息")
    @GetMapping(value = "/{id}")
    public R<SkuVo> getInfo(@PathVariable("id") Long id) {
        return R.ok(skuService.selectSkuById(id));
    }
}
